//
//  IGMainSearchApi.h
//  jingdongfang
//
//  Created by BOE on 2017/9/20.
//  Copyright © 2017年 LJL. All rights reserved.
//

#import "IGBaseRequest.h"
#import "IGArtWorkModel.h"
#import "IGUserInfo.h"
#import "IGSpecial.h"
#import "IGTopicModel.h"
#import "IGCommunityModel.h"
#import "StoreHomeApi.h"

/** 搜索的类型 */
typedef NS_ENUM(NSInteger, IGSearchType) {
    ///>作品搜索
    IGSearchTypeProduct = 1,
    ///>用户搜索
    IGSearchTypeUser = 2,
    ///>文章搜索
    IGSearchTypeSpecial = 3,
    ///>话题搜索
    IGSearchTypeTopic = 4,
    ///>圈子搜索
    IGSearchTypeCircle = 5,
    ///>商品搜索
    IGSearchTypeStore = 6
};

@interface IGMainSearchApi : IGBaseRequest

@property (nonatomic, assign) IGSearchType type;
@property (nonatomic, copy) NSString *searchKey;
@property (nonatomic, assign) NSInteger page;

@end

@interface IGMainSearchModel : IGBaseModel

///>作品
@property (nonatomic, copy) NSArray<IGArtWorkModel> *lstProduct;
///>用户
@property (nonatomic, copy) NSArray<IGUserInfo> *lstUser;
///>文章
@property (nonatomic, copy) NSArray<IGSpecial> *lstSpecial;
///>话题
@property (nonatomic, strong) NSMutableArray<IGTopicModel> *lstTopic;
///>圈子
@property (nonatomic, copy) NSArray<IGCommunityModel> *lstCircle;
///>商品
@property (nonatomic, copy) NSArray<GoodsListModel> *lstGood;

@end

@interface IGMainSearchResp : IGBaseResp

@property (nonatomic, strong) IGMainSearchModel *data;

@end
